package ltd.hxya.novel.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import ltd.hxya.novel.common.bean.BaseEntity;

/**
 * <p>
 *
 * </p>
 *
 * @author hty
 * @since 2022-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="User对象", description="")
public class User extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "管理员id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "管理员姓名")
    private String nickName;

    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @ApiModelProperty(value = "账号状态 0：禁用状态 1：正常使用")
    private Integer status;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "用户头像")
    private String image;

    @ApiModelProperty(value = "性别 0:男， 1：女")
    private Boolean sex;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "创建当前管理员的管理员")
    private String createUserId;

    @ApiModelProperty(value = "修改当前管理员信息的管理员id")
    private String updateUserId;



}
